<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('miniapp_member_recharge_options', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('money')->comment('充值金额');
            $table->unsignedBigInteger('give_table_money')->default(0)->comment('赠送台费金额');
            $table->boolean('is_gift')->default(false)->comment('是否为充值送赠品');
            $table->string('gift_name')->nullable()->comment('赠品名称');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('miniapp_member_recharge_options');
    }
};
